package com.wf.netty.coder.string;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import lombok.extern.slf4j.Slf4j;

/**
 * 功能描述
 *
 * @author wf
 * @since 2022/5/26
 */
@Slf4j
public class StringProcessHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        String acceptMsg = (String) msg;
        log.info("读取到消息： {}", acceptMsg);
    }
}
